package cn.xiaou.view;

import java.awt.Color;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;


import cn.xiaou.utils.ImageManagerUtils;
    

public class AboutView extends JFrame {
	/**
	 * 关于我们窗口无边框
	 */
	private static final long serialVersionUID = 1L;
	private JLabel bg;
	private ImageIcon bgP; 
	public AboutView(JFrame jframe) {
		setUndecorated(true);
	    setBackground(new Color(0,0,0,0));
		setSize(1000,1000);
		bgP=new ImageIcon(ImageManagerUtils.AboutTheWings);
		bg=new JLabel(bgP);
		add(bg);
		setLocationRelativeTo(null);
		setVisible(true);
		setAlwaysOnTop(true);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		bg.addMouseListener(new MouseListener() {
			
			@Override
			public void mouseReleased(MouseEvent e) {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void mousePressed(MouseEvent e) {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void mouseExited(MouseEvent e) {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void mouseEntered(MouseEvent e) {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void mouseClicked(MouseEvent e) {
				jframe.setEnabled(true);
				dispose();
				
			}
		});;
		
	}
//	private void mian() {
//		new AboutView();
//
//	}
}  
